package com.newtouch.bxzs.business.train.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.newtouch.bxzs.business.train.model.bo.CourseBO;
import com.newtouch.bxzs.business.train.model.vo.CourseVO;
import com.newtouch.bxzs.common.base.model.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 课程Mapper
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/2/22 13:23</td>
 * <td>dingqianbin</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author dingqianbin
 * @version 1.0.0
 * @since 1.0.0
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 获取课程列表信息
     *
     * @param page 分页数据
     * @param courseVO 课程查询VO
     * @return 课程返回BO分页数据
     */
    IPage<CourseBO> getCourseList(@Param("page") Page<CourseBO> page, @Param("courseVO") CourseVO courseVO);

    /**
     * 获取课程详细信息
     *
     * @param courseId 课程ID
     * @return 课程详细信息
     */
    CourseBO getCourseDetail(@Param("courseId") String courseId);
}
